﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App1.Assets.temas.peixonauta">

    <!--
    This file contains XAML styles that simplify application development.

    These are not merely convenient, but are required by most Visual Studio project and item templates.
    Removing, renaming, or otherwise modifying the content of these files may result in a project that
    does not build, or that will not build once additional pages are added.  If variations on these
    styles are desired it is recommended that you copy the content under a new name and modify your
    private copy.
-->

<ResourceDictionary.ThemeDictionaries>
            <ResourceDictionary x:Key="Default">
                <x:String x:Key="BackButtonGlyph">&#xE071;</x:String>
                <x:String x:Key="BackButtonSnappedGlyph">&#xE0BA;</x:String>
            </ResourceDictionary>

            <ResourceDictionary x:Key="HighContrast">
                <x:String x:Key="BackButtonGlyph">&#xE071;</x:String>
                <x:String x:Key="BackButtonSnappedGlyph">&#xE0C4;</x:String>
            </ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>

        <x:String x:Key="ChevronGlyph">&#xE26B;</x:String>
    
        <Style x:Key="LayoutRootStyle" TargetType="Panel">
            <Setter Property="Background" Value="#CD2626"></Setter>
            <Setter Property="ChildrenTransitions">
                <Setter.Value>
                    <TransitionCollection>
                        <EntranceThemeTransition/>
                    </TransitionCollection>
                </Setter.Value>
            </Setter>
        </Style>

        <ImageBrush x:Key="Fundo" ImageSource="../Assets/temas/peixonauta/fundo1.jpg" Stretch="UniformToFill"></ImageBrush>

        <DataTemplate x:Key="TemplatePaginaLida">
            <Grid HorizontalAlignment="Left" Width="250" Height="250">
                <Border Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
                    <Image Source="{Binding Image}" Stretch="UniformToFill" AutomationProperties.Name="{Binding Titulo}"/>
                </Border>
                <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}" Width="250" Height="250">
                    <TextBlock Text="{Binding Titulo}" TextAlignment="Center"  FontSize="24" VerticalAlignment="Center" Height="200" Width="200" TextWrapping="Wrap"  Margin="25,25,15,25"/>

                </StackPanel>
            </Grid>
        </DataTemplate>


        <DataTemplate x:Key="TemplateUltimaPaginaLida">
            <Grid HorizontalAlignment="Left" Width="250" Height="250">
                <Border >
                    <Image Source="{Binding Image}" Stretch="UniformToFill" AutomationProperties.Name="{Binding Titulo}"/>
                </Border>
                <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}" Width="250" Height="250">
                    <TextBlock Text="{Binding Titulo}" Foreground="{StaticResource ListViewItemOverlayForegroundThemeBrush}" Style="{StaticResource TitleTextStyle}" TextAlignment="Center"  FontSize="24" Height="60" Width="200" Margin="25,25,15,25"/>
                    <TextBlock Text="{Binding Subtitulo}" Foreground="{StaticResource ListViewItemOverlaySecondaryForegroundThemeBrush}" Style="{StaticResource CaptionTextStyle}" FontSize="22" TextWrapping="NoWrap" Width="200" TextAlignment="Center" TextTrimming="WordEllipsis" Margin="15,0,15,10"/>
                </StackPanel>
            </Grid>

        </DataTemplate>

        <DataTemplate x:Key="ItemTemplateCapitulosFull">
            <Grid  Background="Transparent" Margin="2,50,2,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="200"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="400">
                    </RowDefinition>

                </Grid.RowDefinitions>
                <Image Source="{Binding Image}" Stretch="UniformToFill"/>

                <Border  Width="200" Height="250" Margin="0,250,0,0" Grid.Column="0" Grid.Row="0" 
                     Background="White" Opacity="0.5">

                </Border>

                <TextBlock Margin="10,280,10,0"
                        Text="{Binding Titulo}"
                       VerticalAlignment="Top" 
                       Foreground="Black" 
                       FontSize="24"
                       TextAlignment="Center"
                       TextWrapping="Wrap"/>


            </Grid>
        </DataTemplate>

        <DataTemplate x:Key="ItemTemplateCapitulosSnapped">
            <Grid  Background="Transparent" Margin="2,50,2,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="300"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="200">
                    </RowDefinition>

                </Grid.RowDefinitions>
                <Image Source="{Binding Image}" Stretch="UniformToFill"/>

                <Border  Width="300" Height="100" Margin="0,100,0,0" Grid.Column="0" Grid.Row="0" 
                     Background="White" Opacity="0.5">

                </Border>

                <TextBlock Margin="10,120,20,10"
                        Text="{Binding Titulo}"
                       VerticalAlignment="Top" 
                       Foreground="Black" 
                       FontSize="24"
                       TextAlignment="Center"
                       Height="200"
                       TextWrapping="Wrap" TextTrimming="WordEllipsis" />


            </Grid>
        </DataTemplate>



        <DataTemplate x:Key="PaginaNaoLidaFull">

            <Grid Width="250" Height="250" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="250"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="250"/>
                </Grid.RowDefinitions>

                <Border Grid.Column="0" Grid.Row="0" Background="{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}">
                    <Image Source="{Binding Image}" Stretch="UniformToFill" />
                </Border>
                <StackPanel VerticalAlignment="Bottom" Background="{StaticResource ListViewItemOverlayBackgroundThemeBrush}">
                    <TextBlock Text="{Binding Titulo}" TextAlignment="Center" Foreground="White" TextWrapping="Wrap" TextTrimming="WordEllipsis" 
                           FontSize="24" Width="250" Height="60" Margin="10"/>

                </StackPanel>
            </Grid>
        </DataTemplate>
    </ResourceDictionary>
